//
//  UITextField+WZPPlaceholder.m
//  WZPItem
//
//  Created by 王王喆平 on 16/7/10.
//  Copyright © 2016年 UI. All rights reserved.
//

#import "UITextField+WZPPlaceholder.h"

@implementation UITextField (WZPPlaceholder)
-(void)setPlaceholderColor:(UIColor *)placeholderColor{
    if (self.placeholder.length == 0) {
        self.placeholder = @" ";
    }
    // 获取控件
    UILabel * placeholderLabel = [self valueForKey:@"placeholderLabel"];
    // 设置文字颜色
    placeholderLabel.textColor = placeholderColor;
    
}
-(UIColor *)placeholderColor{
    return nil;
}

@end
